<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="__PUBLIC__/X-admin/css/x-admin.css" media="all">
</head>
<body>
    <div class="x-body">
      
      <form class="layui-form layui-form-pane" action="" method="post">
        <input type="hidden" name="id" id="id" value="{$list['id']}">
       <div class="layui-form-item">
          <label class="layui-form-label">发件人</label>
          <div class="layui-input-inline">
            <input type="text" name="addresser" id="addresser" required  value="{$list['addresser']}" lay-verify="required"  autocomplete="off" class="layui-input layui-btn-disabled" style="color:black;">
          </div>
        </div>

        <div class="layui-form-item">
          <label class="layui-form-label">标题</label>
          <div class="layui-input-inline">
            <input type="text" name="title" id="title" required  value="{$list['title']}"  autocomplete="off" class="layui-input layui-btn-disabled" style="color:black;">
          </div>
        </div>  

        <div class="layui-form-item layui-form-text">
                    
          <label for="L_content" class="layui-form-label" style="top: -2px;">
              详细描述
          </label>
          <div style="width:94%;min-height: 200px;border:3px solid #e6e6e6;border-radius: 2px;border-top:0px;padding: 20px;">
              {$list['contents']}
          </div>
      </div>

        <div class="layui-form-item">
          <div class="layui-input-block">
             <button class="layui-btn layui-btn-disabled" style="margin: 0px 35%;" lay-filter="close" lay-submit>
               已查看
              </button>
          </div>
        </div>
   
    </body>
  </html>
  </div>
   <script src="__PUBLIC__/X-admin/lib/layui/layui.js" charset="utf-8"></script>
   <script src="__PUBLIC__/X-admin/js/x-layui.js" charset="utf-8"></script>
        <script>
            layui.use(['form','layer'], function(){
                $ = layui.jquery;
              var form = layui.form();
              layer = layui.layer;

              //建立编辑器
              layui.use('layedit', function(){
                   layedit = layui.layedit;
                   indexedit = layedit.build('contents',{
                    hideTool: ['image']
                  }); 
                layedit.sync(indexedit);
              });

             form.on('submit(close)', function(data){
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
                parent.reload();
            });
         }); 
        </script>
        <script type="text/javascript">
          drafts=document.getElementById('drafts');
          drafts.onchange(function () {
            alert("1111");
          })
        </script>